
$("#submit").click(function(){
    /*
    var item = new Object();
    item.title = 123;
    store.set('value',item);
    var a = store.get('value');
    console.log(a.title);
    */
    setValue(init());
    getItem();
});

var item = new Object();

function init(){
    var title = $("#input").val();
    item.title = title;
    return item;
}
function setValue(item){
    console.log("set的值为：" + item);
    store.set("item",item);
}
function getItem(){
    var item = store.get("item");
    var html = '<div class="task-item"><span><input type="checkbox"/></span><span class="task-content">' + item.title + '</span><span>删除</span><span>详细</span></div>';
    var task_list = $(".task-list");
    task_list.html(task_list.html() + html);
}